﻿@page
@model Acme.BookStore.Web.Pages.MyWidgetsModel

@using Acme.BookStore.Web.Pages.Shared.Components.MySimpleWidget

@*@{
        ViewData["Title"] = "MyWidgets";
    }

    <h1>MyWidgets</h1>*@


@* Example usage by widget name *@
@await Component.InvokeAsync("MySimpleWidget", new { name = "John" })

<hr />

@* Example usage by widget type *@
@await Component.InvokeAsync(typeof(MySimpleWidgetViewComponent), new { name = "Mete" })